<div id="enquete_cont">
<?php if(count($enquete) > 0) : ?>
	<h3><?php echo $enquete['ds_pergunta']; ?></h3>
	<br>
	<form id="form_enquete">
	<ul>
	<?php foreach($enquete['EnqueteOpcao'] as $opcao): ?>
		<li style="padding: 5px">
		<?php 
			echo radiobutton_tag(
				'opcao', 
				$opcao['id_enquete_opcao']
			);
		?>
		
		<label for="<?php echo get_id_from_name('opcao[]', $opcao['id_enquete_opcao'])?>">
		<?php echo $opcao['ds_opcao']; ?>
		</label>
		</li>
	<?php endforeach;?>
	<?php echo input_hidden_tag('id_enquete', $enquete['id_enquete']); ?>
	</ul>
	</form>
	<br>
	<button type="button" class="buscarbotao curved5-topright curved5-bottomright votar">votar</button>
	<button type="button" class="buscarbotao curved5-topright curved5-bottomright result" value="<?php echo $enquete['id_enquete']; ?>">ver resultado</button>
	
	<?php include_partial('enquete/enquete.js'); ?>
<?php endif; ?>
</div>